import { Opt } from '__com/Opt.js'
import ruleOpt from '@/option/rule.js'
export class editOpt extends Opt {
  constructor(fun) {
    super(fun)
  }

  create() {
    return [
      {
        placeholder: '主体信息',
        text: {
          className: 'info-label-title'
        }
      },

      {
        title: '主体名称',
        key: 'companyName',
        placeholder: '请输入主体名称',
        input: {
          maxlength: 20
        },
        rules: [ruleOpt.required('主体名称不能为空')]
      },
      {
        placeholder: '主体备注',
        text: {
          className: 'info-label-title'
        }
      },
      {
        title: '',
        key: 'remark',
        input: {
          type: 'textarea',
          showWordLimit: true,
          maxlength: 200,
          autosize: {
            minRows: 3,
            maxRows: 5
          }
        }
      }
    ]
  }
}
